package controllers;

import java.util.ArrayList;
import java.util.List;

public class MsgPack 
{
	private List<Messages> messages;
	
	public MsgPack() {
		messages = new ArrayList<Messages>();
	}

	public Messages newMsg(int nr) {
		messages.add(nr, new Messages(nr));
		return messages.get(nr);
	}
	
	public Messages getMsg(int nr) {
		return messages.get(nr);
	}
}
